<?php
include "class.phpmailer.php"; 
include "class.smtp.php"; 

$mail = new PHPMailer();
$mail->IsSMTP(); 
$mail->Host = "smtp.gmail.com"; 
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'ssl';
$mail->WordWrap = 50;
$mail->IsHTML(true);
//$mail->SMTPDebug = 2;
$mail->Username = "pnjdang@gmail.com";
$mail->Password = "123456abc";

//$mail->From = $from_email;
//$mail->FromName = $from_name;
//$mail->AddReplyTo($from_email, $from_name);
//$mail->AddAddress($to_email, $to_name);
//$mail->AddCC($cc_email, $cc_name);
//$mail->AddBCC($bcc_email, $bcc_name);
//$mail->Subject = $subject;
//$mail->Body = $body;
//
//$mail->Send();